﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _92类和对象问卷案例
{
    internal class Question
    {
        public string title;
        public string[] options;
        public string trueAnswer;

        public void Show()
        {
            Console.WriteLine(this.title);
            for (int i = 0; i < this.options.Length; i++)
            {
                Console.WriteLine("\t" + this.options[i]);
            }
        }

        public bool CheckAnswer(string userAnswer)
        {
            return this.trueAnswer.ToUpper() == userAnswer.ToUpper();
        }
    }
}